import { service } from "../http/request";

/**
 * 签到接口
 */
const signIn = () => {
  return service({
    method: 'get',
    url: '/sign/'
  })
}

/**
 * 获取个人签到数据
 */
const getMySignInfo = () => {
  return service({
    method: 'get',
    url: '/sign/myInfo'
  })
}

/**
 * 获取签到列表
 */
const getSignRecord = (currentPage, size, findSignParam, signDateScope) => {
  return service({
    method: 'get',
    url: `/sign/signRecord?currentPage=${currentPage}&size=${size}
    &nameId=${findSignParam.nameId}&signStatus=${findSignParam.signStatus}&workStatus=${findSignParam.workStatus}&signDateScope=${signDateScope}`, //
    // data: {
    //   'currentPage':currentPage,
    //   'size':size,
    //   'findSignParam':findSignParam,
    //   'signDataScope':signDataScope
    // }
  })
}

export default {
  signIn,
  getMySignInfo,
  getSignRecord
}
